package cn.gene.timeyan.pojo.store.order.dto;

import cn.gene.timeyan.pojo.valid.store.order.OrderRegExpression;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 新增订单*
 *
 * @author LWG
 * @date 2022/7/22 17:56
 * @since 1.0.0@gene.cn
 */
@ApiModel(value="订单新增DTO")
@Data
public class OrderAddDTO implements OrderRegExpression,Serializable {
    private static final String VALIDATE_MESSAGE_PREFIX = "新增订单失败，";
    private static final long serialVersionUID = 1L;
    /*属性*/
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "用户id",name = "userId",example = "2",required = true)
    private Long userId;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "商品id",name = "goodsId",example = "1",required = true)
    private Long goodsId;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "兑换积分",name = "actualScore",example = "33",required = true)
    private Integer actualScore;
    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "数量",name = "purchaseVolume",example = "1",required = true)
    private Integer purchaseVolume;

    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "电话号码",name = "phone",example = "123456",required = true)
    private String phone;

    @NotNull(message = "参数不能为空")
    @ApiModelProperty(value = "地址",name = "address",example = "km",required = true)
    private String address;

}
